﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dealin.Data.Extensions
{
    /// <summary>
    /// 字段项目
    /// </summary>
    public  class FieldItem
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        public DbType DbType { get; set; }
        /// <summary>
        /// 字段名
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 显示名称 必填  选填  区分
        /// </summary>
        public string DisplayName{ get; set; }
        /// <summary>
        /// 小数位数
        /// </summary>
        public int? DecimalPlaces { get; set; }
        /// <summary>
        /// 是否只读
        /// </summary>
        public bool? ReadOnly { get; set; }
        /// <summary>
        /// 查询脚本，参数值使用@
        /// </summary>
        public string Sql { get; set; }
        /// <summary>
        /// 查询脚本使用的参数信息
        /// </summary>
        public string[] Paramters { get; set; }
    }
}
